

<%@ page import="mms.RestaurantCompany" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'restaurantCompany.label', default: 'RestaurantCompany')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
        <js:thickbox/>
        <g:javascript src="restaurantCompany/create.js" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${restaurantCompanyInstance}">
            <div class="errors">
                <g:renderErrors bean="${restaurantCompanyInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="restaurantCompany.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${restaurantCompanyInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="loginName"><g:message code="restaurantCompany.loginName.label" default="Login Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'loginName', 'errors')}">
                                    <g:textField name="loginName" maxlength="20" value="${restaurantCompanyInstance?.loginName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password"><g:message code="restaurantCompany.password.label" default="Password" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'password', 'errors')}">
                                    <g:textField name="password" maxlength="10" value="${restaurantCompanyInstance?.password}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="address"><g:message code="restaurantCompany.address.label" default="Address" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'address', 'errors')}">
                                    <g:textField name="address" value="${restaurantCompanyInstance?.address}" />
                                </td>
                            </tr>
                        

                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contact"><g:message code="restaurantCompany.contact.label" default="Contact" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'contact', 'errors')}">
                                    <g:textField name="contact" value="${restaurantCompanyInstance?.contact}" />
                                </td>
                            </tr>
                        
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sanitationLicence"><g:message code="restaurantCompany.sanitationLicence.label" default="Sanitation Licence" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'sanitationLicence', 'errors')}">
                                    <g:textField name="sanitationLicence" value="${restaurantCompanyInstance?.sanitationLicence}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sanitationLicenceIssue"><g:message code="restaurantCompany.sanitationLicenceIssue.label" default="Sanitation Licence Issue" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'sanitationLicenceIssue', 'errors')}">
                                    <g:textField name="sanitationLicenceIssue" value="${restaurantCompanyInstance?.sanitationLicenceIssue}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="incorporator"><g:message code="restaurantCompany.incorporator.label" default="Incorporator" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'incorporator', 'errors')}">
                                    <g:select name="incorporator.id" from="${restaurantCompanyInstance?.incorporator ?[restaurantCompanyInstance?.incorporator] : []}" optionKey="id" value="${restaurantCompanyInstance?.incorporator?.id}"   />
                                     <a href="javascript:" id="createIncorporator"><img src="${resource(dir:'images',file:'add.png')}"  alt="add" border="0" /></a> 
                                    <a href="javascript:" id="searchIncorporator"><img src="${resource(dir:'images',file:'search.png')}"  alt="search" border="0" /></a> 
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="manager"><g:message code="restaurantCompany.manager.label" default="Manager" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'manager', 'errors')}">
                                    <g:select name="manager.id" from="${restaurantCompanyInstance?.manager ?[restaurantCompanyInstance?.manager] : []}"  optionKey="id" value="${restaurantCompanyInstance?.manager?.id}"  />
                                    <a href="javascript:" id="createManager"><img src="${resource(dir:'images',file:'add.png')}"  alt="add" border="0" /></a> 
                                    <a href="javascript:" id="searchManager"><img src="${resource(dir:'images',file:'search.png')}"  alt="search" border="0" /></a> 
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="level"><g:message code="restaurantCompany.level.label" default="Level" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'level', 'errors')}">
                                    
                                    <g:radioGroup name="level"   labels="${restaurantCompanyInstance.constraints.level.inList}"  values="${restaurantCompanyInstance.constraints.level.inList}"  value="${restaurantCompanyInstance.level}" >
                                    <span>${it.label}: ${it.radio}</span>&nbsp;&nbsp;&nbsp;
                                    </g:radioGroup>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sellOfYear"><g:message code="restaurantCompany.sellOfYear.label" default="Sell Of Year" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'sellOfYear', 'errors')}">
                                    <g:textField name="sellOfYear" value="${restaurantCompanyInstance?.sellOfYear}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="gis"><g:message code="restaurantCompany.gis.label" default="Gis" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'gis', 'errors')}">
                                    <g:textField name="gis" value="${restaurantCompanyInstance?.gis}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="latitude"><g:message code="restaurantCompany.latitude.label" default="Latitude" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'latitude', 'errors')}">
                                    <g:textField name="latitude" value="${restaurantCompanyInstance?.latitude}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="longitude"><g:message code="restaurantCompany.longitude.label" default="Longitude" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'longitude', 'errors')}">
                                    <g:textField name="longitude" value="${restaurantCompanyInstance?.longitude}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="area"><g:message code="restaurantCompany.area.label" default="Area" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'area', 'errors')}">
                                    <g:textField name="area" value="${restaurantCompanyInstance?.area}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="nature"><g:message code="restaurantCompany.nature.label" default="Nature" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'nature', 'errors')}">
                                    <g:textField name="nature" value="${restaurantCompanyInstance?.nature}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="scopeOfBusiness"><g:message code="restaurantCompany.scopeOfBusiness.label" default="Scope Of Business" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: restaurantCompanyInstance, field: 'scopeOfBusiness', 'errors')}">
                                    <g:textArea name="scopeOfBusiness" cols="40" rows="5" value="${restaurantCompanyInstance?.scopeOfBusiness}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
